Skip to content

Submit ci-proto to RespiCast every week - #13

Open
Benjamin-Walker wants to merge 1 commit into
mainfrom
respicast-weekly
Open

Benjamin-Walker wants to merge 1 commit into
mainfrom
respicast-weekly

Conversation

@Benjamin-Walker

Copy link
Copy Markdown
Contributor

Submit ci-proto to RespiCast every week

This adds a GitHub Actions workflow that sends ci-proto's forecasts to ECDC's RespiCast hub every week, under the model name CI-ci_proto.

Every Saturday morning (after the hub publishes the week's data on Friday) the workflow:

  1. Downloads the hub's latest data.
  2. Runs examples/respicast/submit.py, which forecasts the next four weeks for each country.
  3. Checks that the file follows the hub's format rules.
  4. Runs examples/respicast/open_pr.sh, which opens a pull request to the hub from Benjamin-Walker's fork. The hub's own checks then merge it.

ci-proto gives nine quantiles, from 10% to 90%. The hub wants 23, from 1% to 99%, so submit.py fills in the rest by assuming a log-normal shape between and beyond ci-proto's quantiles.

If Saturday's run doesn't submit, for example because the data is late, runs on Monday and Tuesday try again.

Tested locally:

  • A run without a GPU takes under a minute and produces the same rows as our 25 November submission.
  • Replaying all 65 weeks without a GPU scores the same as with one.

submit.py makes and checks the open round's forecasts from the hub's
latest data, open_pr.sh opens the pull request from the fork, and the
RespiCast submission workflow runs them on Saturdays, with Monday and
Tuesday runs as fallbacks.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant